package bootpayservice.demo.service.ServiceImpl;

import bootpayservice.demo.mapper.PayMapper;
import org.example.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
@com.alibaba.dubbo.config.annotation.Service
public class PayServiceImpl implements PayService {
    @Autowired
    PayMapper payMapper;

    @Override
    public BigDecimal getAccount(int uid) {
        return payMapper.getAccountByUserId(uid);
    }
}
